<?php
class MpDeliverHis extends ActiveRecord
{
	public $id_mp_deliverhis;
	public $id_wxuser;
	public $action;
	public $idmp;
	public $createtime; 
	public $id_tradedetail;

	const ACTION_OPEN = 'open';
    const ACTION_CLOSE = 'close';
	
	public static function model($className=__CLASS__)
	{
		return parent::model($className);
	}
	
	public function tableName()
	{
		return 'mp_deliverhis';
	}
	
	/**
	 * @return array validation rules for model attributes.
	 */
	public function rules()
	{
		return array(
			array('id_mp_deliverhis, id_wxuser, action, idmp, createtime', 'safe'),
		);
	}

	/**
	 * @return array customized attribute labels (name=>label)
	 */
	public function attributeLabels()
	{
		return array(
			
		);
	}
}
